streamline guest copy operations
authorJan Beulich <jbeulich@suse.com>
Mon, 10 Dec 2012 10:18:25 +0000 (11:18 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 10 Dec 2012 10:18:25 +0000 (11:18 +0100)
commite93e0d9d73ce77bd1f3471af68a194b47e0e8c45
treebe7768d89381228bc3ed5f4867db23f631a78054
parentedaa3f893f8f046e05099bc0d087b276a90451d4
streamline guest copy operations

- use the variants not validating the VA range when writing back
  structures/fields to the same space that they were previously read
  from
- when only a single field of a structure actually changed, copy back
  just that field where possible
- consolidate copying back results in a few places

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
15 files changed:
xen/arch/x86/domctl.c
xen/arch/x86/mm.c
xen/arch/x86/physdev.c
xen/arch/x86/platform_hypercall.c
xen/arch/x86/sysctl.c
xen/arch/x86/x86_64/compat/mm.c
xen/arch/x86/x86_64/mm.c
xen/common/compat/memory.c
xen/common/domctl.c
xen/common/event_channel.c
xen/common/grant_table.c
xen/common/memory.c
xen/common/sysctl.c
xen/common/xenoprof.c
xen/drivers/passthrough/iommu.c